<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <title>学生管理</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="description" content="">
    <meta name="author" content="">
		<script type="text/javascript" src="__JS__/jshelper.js"></script> 
<script type="text/JavaScript">
				function pathedit(id){
					window.location.href="__URL__/pathedit/id/"+id;
				}
				function pathsearch(id){
					window.location.href="__URL__/pathdetail/id/"+id;
				}
				function pathdelete(id,classid,pname){
					if (confirm("你确定要删除吗")==true)
						postwith('__URL__/pathdelete',{id:id,classid:classid,pname:pname,number:number});
				}
				function filedownload(id,classid,pname){
						postwith('__URL__/filedownload',{id:id,classid:classid,pname:pname,number:number});
				}
					window.onload=show;
</script>
</head>
<body>
	 <!-- layout::Auth:header::0 -->
     	<div class="container-fluid">
     			<div class="row-fluid">
     				<!-- layout::Auth:leftmenu::0 -->
                    <div class="span8">
                          <div class="hero-unit">
                            <h1>学生管理</h1>
                            <p style="font-size:12px">当前位置：
                                <a href='__APP__/index/index' >主页</a>>
                                <a href='__URL__/index' >后台管理</a>>
                                <a href='__URL__/classdetail' >教学班管理</a>>
                                <a href=""  >学生管理</a>
                            </p>
                          </div>
                          <table class="table table-striped table-bordered table-condensed">
                          	<thead style="background-color:#09F">
                          		<tr>
                                	<td>
                                    	教学班设置
                                    </td>
                                </tr>
                              </thead>
                              <tbody>
                              	 <tr>
                                 	<td>
                                    	<a href='__URL__/savepath/id/<?php echo ($id); ?>/number/<?php echo ($number); ?>' class="btn btn-info" title="学生作业上传文件夹">设置上传文件夹</a>
						<a href='__URL__/addstudent/id/<?php echo ($id); ?>' class="btn btn-success" >添加学生</a>
						<a href='__URL__/deletestudent/id/<?php echo ($id); ?>' class="btn btn-danger">删除学生</a>
                                    </td>
                                </tr>
                              </tbody>
                               
                          </table>
						
                       	<table class="table table-striped table-bordered table-condensed">
                        	<thead style="background-color:#09F">
                            	<tr>
                                	<th style="display:none">ID</th>
                                	<th>标题</th>
                                    <th>操作</th>
                                </tr>
                            </thead>
                            <load href="__PUBLIC__/js/list_show.js">
                            <tbody>
                            <?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr>
                                	<td style="display:none"><?php echo ($vo["id"]); ?></td>
                                    <td>
                                    	<a href="__URL__/workdetail/id/<?php echo ($vo["classid"]); ?>/p/<?php echo ($vo["id"]); ?>" title="点击进入作业下载"><?php echo ($vo["pname"]); ?></a>
                                    </td>
                                    <td>
                                    	<a href="#" name='edit_path'  onClick="pathedit('<?php echo ($vo["id"]); ?>')" class="btn btn-info">编辑</a>
										<a href="#"  name='delete_path' onClick="pathdelete('<?php echo ($vo["id"]); ?>','<?php echo ($vo["classid"]); ?>','<?php echo ($vo["pname"]); ?>','<?php echo ($number); ?>')"  class="btn btn-danger">删除</a>
										<a href="#" name='download'   onClick="filedownload('<?php echo ($vo["id"]); ?>','<?php echo ($vo["classid"]); ?>','<?php echo ($vo["pname"]); ?>','<?php echo ($number); ?>')"  class="btn btn-primary">下载</a>
										<a href="__URL__/workdetail1/id/<?php echo ($vo["classid"]); ?>/p/<?php echo ($vo["id"]); ?>" name='inspect' class="btn btn-inverse">查重</a>
                                    </td>
                                </tr><?php endforeach; endif; else: echo "" ;endif; ?>
                            </tbody>
                        </table>
                   	<p class="navbar-text pull-right"><?php echo ($page); ?></p>
					</div>
                  </div>
                </div>
                <script src="__JS__/placeholderIEshow.js"></script>
</body>
</html>